package com.kuang.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author: lh
 * @Date: 2023/4/26 15:36
 * @Package:com.lh.pojo
 */

// 人
@Data
public class People {
    @Autowired
    private Dog dog;
    @Autowired
    private Cat cat;
    private String name;


    @Override
    public String toString() {
        return "People{" +
                "dog=" + dog +
                ", cat=" + cat +
                ", name='" + name + '\'' +
                '}';
    }
}
